//
// This file is only used to make the lib
// people can modifi them in their main files
//

#include "constants.h"

//used in krylov solver for solving maxwells
extern double globalMaxwellTol = 1.0e-8;
extern double globalMaxwellTolLowerBound = 1.0e-8;

//used in dynamically change tol for solving 
//maxwell equation with respect to JD iterations
extern double JDMaxwellTol = 1.0e-2;
extern double JDMaxwellTolLowerBound = 1.0e-8;

//used in dynamically change tol for solving 
//correction equations with respect to JD iterations
extern double CorrectionEqnTol = 1.0e-2;
extern double CorrectionEqnTolLowerBound = 1.0e-5;

//if change globalMaxwellTol with respect to iterations
//of solving correction equation
extern int isChangeMaxwellTolWRTCorrectionEqn = 0;

//if change CorrectionEqnTol with respect to iterations
//of JD iterations
extern int isChangeCorrectionEqnTolWRTJDiter = 0;

//if change globalMaxwellTol with respect to JDiterations
extern int isChangeMaxwellTolWRTJDiter = 0;

extern int Edge_end[6][2] = {{0,1},{0,2},{0,3},{1,2},{1,3},{2,3}};

extern int Face_end[4][3] = {{0,1,2},{0,1,3},{0,2,3},{1,2,3}};

extern int Face_edge[4][3] = {{0,1,3},{0,2,4},{1,2,5},{3,4,5}};

extern int Face_edge_end[3][2] = {{0,1}, {0,2}, {1,2}};

extern int BM_OUTER = 100;
extern int BM_MPI   = 200;
extern int BM_GHOST = 300;
extern int BM_INTERFACE   = 10;
extern int BM_INTERFACE_A = 20;
extern int BM_INTERFACE_B = 30;
  
